import request from '@/views/utils/request'

// 获取楼宇信息列表
export function getBuildingList() {
  return request({
    url: 'park/rent/building'
  })
}

// 添加或续租合同
export function addBuilding(data) {
  return request({
    url: '/park/enterprise/rent',
    method: 'post',
    data
  })
}

// 退租
export function OutBuilding(id) {
  return request({
    url: `/park/enterprise/rent/${id}`,
    method: 'put'
  })
}

